<% if @members.empty? %>
  <p>Wenn Sie diese Meldung lesen können, ist hier was kaputt.</p>
<% else %>

  <div class="gru-list-header">
      <span class="gru-memberslist-cnt">#</span>
      <span class="gru-memberslist-alias"><%= t :alias, :scope => [:activerecord, :attributes, :user] %></span>
      <span class="gru-memberslist-role"><%= t :role, :scope => [:activerecord, :attributes, :member] %></span>
  </div>

  <% cnt = 1 %>
  <% @members.each do |member| %>
    <div class="gru-memberslist">
      <span class="gru-memberslist-cnt"><%= cnt; %><% cnt = cnt +1 %></span>
      <span class="gru-memberslist-alias"><%= member.user.alias %></span>
      <span class="gru-memberslist-role"><%= t member.role, :scope => "activerecord.attributes.values.member.roles"%></span>
      <span class="gru-memberslist-link"><%= link_to (t :show, :scope => [:helpers, :navigation]), project_member_path(params[:project_id], member) %></span>
    </div>
  <% end %>


<% end %>

<br />
<%= link_to (t :back, :scope => [:helpers, :navigation]), :controller => "projects", :action => "show", :id => params[:project_id] %> &#124;
<%= link_to (t :create, :scope => [:helpers, :navigation, :member]), new_project_member_path%>
